package com.nciae.po;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "danmu")
public class Danmu {
    @Id
    private String id;

    private String content;

    private String viewId;

    private String userId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getViewId() {
        return viewId;
    }

    public void setViewId(String viewId) {
        this.viewId = viewId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Danmu{" +
                "id='" + id + '\'' +
                ", content='" + content + '\'' +
                ", viewId='" + viewId + '\'' +
                ", userId='" + userId + '\'' +
                '}';
    }
}